if(POLICY CMP0144)
    cmake_policy(SET CMP0144 NEW)
endif()
include(FindThreads)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/absl.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/re2.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/zlib.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/libzmq.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/jemalloc.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/rocksdb.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/securec.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/tbb.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/nlohmann_json.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/openssl.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/libcurl.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/protobuf.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/grpc.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/etcdapi.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/iconv.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/xml2.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/pcre.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/cjson.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/spdlog.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/sdk_c_obs.cmake)
if (BUILD_WITH_URMA)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/ub.cmake)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/urma.cmake)
endif()

if (WITH_TESTS)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/gtest.cmake)
endif()

if (BUILD_PYTHON_API)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/pybind11.cmake)
endif()

if (BUILD_HETERO)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/ascend.cmake)
    include(${CMAKE_SOURCE_DIR}/cmake/external_libs/p2phccl.cmake)
endif()
